package com.fanshuai.jmx.mbean;

import javax.management.Notification;
import javax.management.NotificationBroadcasterSupport;

public class Jack extends NotificationBroadcasterSupport implements JackMBean {
    private int seq = 0;

    public void hi() {
        Notification notification = new Notification("jack.hi", this, ++seq, System.currentTimeMillis(), "i am jack");
        sendNotification(notification);

        System.out.println("send notification, msg=" + notification);
    }
}
